package com.example.xurupita;
//Teste
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
//SS
public class MainActivity extends Activity {
	
	private String ultimovalor;
	
	//JONAS GUEI
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        final EditText edNome = (EditText)findViewById(R.id.editText1);
        Button btLimpar = (Button)findViewById(R.id.button1);
        
        btLimpar.setOnClickListener(new OnClickListener() {
			//asdasdsda
			@Override
			public void onClick(View arg0) {
				ultimovalor = edNome.getText().toString();
				edNome.setText("");
				edNome.requestFocus();
				
				//Jonas Gay
				
			}
		});
        
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
}
